<%--
  Created by IntelliJ IDEA.
  User: sunk
  Date: 15-11-9
  Time: 下午2:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>短租详情</title>
    <script type="text/javascript">
        function payFor(guid, customer, phoneNum, description) {
            $.ajax({
                url: "/rent/payFor",
                type: "post",
                contentType: 'application/json;charset=UTF-8',
                data: JSON.stringify({guid: guid, customer: customer, phoneNum: phoneNum, description: description}),
                success: function (data) {

                }
            });
        }
        function payFor(price, guid, name, days) {

            location.href = "/rent/payFor/" + price + "/" + name + "/" + guid;
        }
    </script>
</head>
<body>
<div>
    <ul>
        <li><img src="/public/image/${rentDTO.ownerPhotoGuid}" style="width: 40px;height: 40px">${rentDTO.ownerName}
        </li>
        <li><img src="/public/image/${rentDTO.imageGuid}" style="width: 40px;height: 40px"></li>
        <li>${rentDTO.personNum}人</li>
        <li>${rentDTO.days}天</li>
        <li>${rentDTO.price}元</li>
        <li>${rentDTO.information}</li>
        <li>
            <button onclick="payFor('${rentDTO.price}','${rentDTO.guid}','${rentDTO.houseName}','${rentDTO.days}')">
                支付
            </button>
        </li>
    </ul>
</div>
</body>
</html>